<?php

$table ='member';

$dbforge->add_field('id'); 

$fields = array(
    'username' => array(
        'type' => 'varchar',
        'constraint' => 255,
        'default' => '',
    ),
    'password' => array( //sha1函数计算40位
        'type' => 'char',
        'constraint' => 40,
        'default' => '',
    ),
    'confusion' => array( //混淆码
        'type' => 'char',
        'constraint' => 6,
        'default' => '',
    ),
    'created_at' => array(
        'type' => 'int',
        'default' => 0,
    )
    
    
); 
$dbforge->add_field($fields);
$dbforge->create_table($table);

